package xkp.lesson3;

public class Person {
	public int age;
	private String name;
	
	public Person() {
		System.out.println("I am Person");
	}
	
	public Person(int age) {
		this.age = age;
	}
	
	public Person(String name) {
		this.name = name;
	}
	
	public Person(int age,String name) {
		this.age = age;
		this.name = name;
	}
	
	
	public Person(Person person) {
		this.age = person.age;
		this.name = person.name;
	}
	

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String sayInfo() {
		return this.getName()+"----"+this.getAge();
	}

}
